package desgin.pattern.structure.composite;

public class Composite {

	public static void main(String[] args) {
		Folder folder = new Folder("c盘");
		folder.addFile(new File("a.txt"));

		Folder music = new Folder("我的音乐");
		File f1 = new File("中国人.mp3");
		File f2 = new File("中国心.mp3");
		music.addFile(f1);
		music.addFile(f2);

		folder.addFile(music);
		
		folder.copy();
	}
}
